/*
 * lib2Desa - Another 2D game library in C++
 * Copyright (C) 2009 Erivaldo Xavier de Lima Filho
 *
 * This program is free software and is distributed under GNU General Public License version 3. You can modify and/or redistribute
 * it under the terms of GPL version 3 or posterior version. This program comes with NO WARRANTY, for more details, see LICENSE,
 * or <http://www.gnu.org/licenses>.
 *
 * Contact info:
 *
 *	Erivaldo Xavier de Lima Filho, desadoc@gmail.com
 *
 */

#ifndef _SPRITESEQUENCE_HPP
#define _SPRITESEQUENCE_HPP

#include "Core/shared_ptr.hpp"
#include "Core/ISprite.hpp"

#include <vector>

#ifndef _NO_NAMESPACE
namespace lib2Desa {
#endif

class SpriteSequence
{

private:

	u16 size;
	std::vector<shared_ptr<ISprite> > sprites;

public:

	SpriteSequence(u16 size);
	~SpriteSequence(void);

	u16 getSize(void) const;

	const shared_ptr<ISprite> operator[](u16 pos) const;
	shared_ptr<ISprite> operator[](u16 pos);

	shared_ptr<ISprite> set(shared_ptr<ISprite> s, u16 pos);
};


#ifndef _NO_NAMESPACE
}
#endif

#endif /*SpriteSequence.hpp included*/
